<template>
  <div class="record-trend-detail-table">
    <tag-table ref="table" :data="dataList" :columns="columns" :pagination="false"></tag-table>
  </div>
</template>

<script>
export default {
  data() {
    return {
      dataList: [],
      columns: [
        {
          show: true,
          label: '时间',
          prop: 'key',
          align: 'right'
        },
        {
          show: true,
          label: '浏览量（PV）',
          prop: 'pv',
          align: 'right'
        },
        {
          show: true,
          label: '访客数（UV）',
          prop: 'uv',
          align: 'right'
        },
        {
          show: true,
          label: 'IP数',
          prop: 'ip',
          align: 'right'
        },
        {
          show: true,
          label: '用户数',
          prop: 'user',
          align: 'right'
        }
      ]
    }
  },
  methods: {
    setData(data) {
      this.dataList = data
    }
  }
}
</script>

<style lang="scss"></style>
